/**
 * 演示版本相关接口
 */
import request from '../utils/request'

console.log(request)


// 2. 拉取视频流
const startPullCameraStreamCMDById = id => {
  return request.get(`/gateway/camera/start/${id}`)
}

// 停止拉取视频流
const stopPullCameraStreamCMDById = id => {
  return request.get(`/gateway/camera/stop/${id}`)
}

// 开始推语音流命令
const startPushRadioStreamCMDById = id => {
  return request.get(`/gateway/radio/start/${id}`)
}

// 指定id的结束推流命令
const stopPushRadioStreamCMDById = id => {
  return request.get(`/gateway/radio/stop/${id}`)
}

export default {
  startPullCameraStreamCMDById,
  stopPullCameraStreamCMDById,
  startPushRadioStreamCMDById,
  stopPushRadioStreamCMDById
}